package ProjectCodeEngine;

public class SplitCombineRule implements SplitRule {

    /**
     * 组合焊项目代号切割成两个
     *
     * @param projectCode
     * @return
     */
    public String[] split(String projectCode) {
        String[] splits = projectCode.split("和");
        if (splits.length == 2) {
            splits[0] = splits[0].substring(0, splits[0].length() - 1);
            splits[1] = splits[1].substring(1);
        }
        return splits;
    }

}
